home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WMP 2.xpl < prev    next >
Text File  |  2001-11-29  |  2KB  |  67 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH 1"="Program Options\Built in Windows Apps\Windows Media Player"
  5. "UIPATH 2"="Internet\Windows Media Player"
  6. "NAME"="Media Guide Button"
  7. "LANGUAGE"="VBScript"
  8. "VERSION"="1.14"
  9. "TEXT 1"="Button Name"
  10. "TEXT 2"="Button URL"
  11. "DESCRIPTION 1"="Allows you to change the site URL and name of the 'Media Guide' button if you would rather use something different than the default "http://windowsmedia.microsoft.com/default.asp"."
  12. "DESCRIPTION 2"="To revert to the defaults, clear the fields."
  13. "DESCRIPTION 3"="Note: only affects Windows Media Player 6.x"
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"=" "
  18.  
  19.  
  20. sPath="HKCU\Software\Policies\Microsoft\WindowsMediaPlayer\"
  21. sV1="ShowCaseButton"
  22. sV2="ShowCaseURL"
  23.  
  24.  
  25. Sub Plugin_Initialize 
  26.  s=RegReadValue(sPath & sV1)
  27.  SetUIElement 1,s
  28.  
  29.  s=RegReadValue(sPath & sV2)
  30.  SetUIElement 2,s
  31. End Sub
  32.  
  33.  
  34. Sub Plugin_CheckData(ElementIndex)
  35. End Sub
  36.  
  37.  
  38.  
  39. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  40.  s=GetUIElement(1)
  41.  if len(s)=0 then
  42.     'If values exists, delete it
  43.     s=RegReadValue(sPath & sV1)
  44.     if IsEmpty(s)=false then Call RegDeleteValue(sPath & sV1)
  45.  else
  46.     Call RegWriteValue(sPath & sV1,s,1)
  47.  end if
  48.  
  49.  s=GetUIElement(2)
  50.  if len(s)=0 then
  51.     'If values exists, delete it
  52.     s=RegReadValue(sPath & sV2)
  53.     if IsEmpty(s)=false then Call RegDeleteValue(sPath & sV2)
  54.  else
  55.     Call RegWriteValue(sPath & sV2,s,1)
  56.  end if
  57.  
  58.  
  59. End Sub
  60.  
  61.  
  62. Sub Plugin_Terminate 
  63. End Sub
  64.  
  65.  
  66.  
  67.